#include "trap.h"
    .org 0x0
    .text
    .global _start
_start:
    pcaddu12i   $a0, 0xffff
    ori         $s1, $zero, 4
    ori         $s2, $zero, 0xFFF
    srl.w       $t3, $s2, $s1
    ld.b        $t5, $s1, -4
    ld.w        $t6, $s1, +8
    beq         $s1, $s2, -8
    add.w       $t1, $s1, $s2
    addi.w      $t1, $t1, 0x3
    lu12i.w     $a0,-0x7fc00    # a0 = 0x80400000
    ori         $a1, $a0, 0x100
    ori		    $t0, $zero, 0x0FF
    or		    $s0, $a1, $t0
    HIT_GOOD_TRAP
